package com.src.iseclive.mvp.view.implement.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Toast;

import com.src.iseclive.R;
import com.src.iseclive.base.BaseActivity;
import com.src.iseclive.mvp.presenter.implement.MainPresenter;
import com.src.iseclive.mvp.view.IMainView;

import butterknife.OnClick;

public class MainActivity extends BaseActivity<MainPresenter> implements IMainView {


    @Override
    protected int initView(@Nullable Bundle savedInstanceState) {
        return R.layout.activity_main;
    }

    @Override
    protected void initialize(@Nullable Bundle savedInstanceState) {

        mPresenter.onLoad();
    }


    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }

    @Override
    public void showMessage(@NonNull String message) {

    }

    @OnClick(R.id.tv_main)
    void onTextViewClick(View view) {

        startActivity(new Intent(this, SecondActivity.class));

    }

    @Override
    public void loadMord() {
        Toast.makeText(this, "注入成功", Toast.LENGTH_SHORT).show();
    }
}
